<ion-content>
    <div class="head">
        <div class="user">
            <img 
                float-left 
                class="avatar" 
                src="{{ userinfo?.headurl }}" 
                alt=""
                onerror="onerror=null;src='./assets/icon/logo.png'">
            <p class="user-name">{{ userinfo.nickname }}</p>
            <span class="user-id">ID:{{ userinfo.id }}</span>
        </div>
        <div class="mes">
            <div class="wallet" float-left >
                <h6>{{ userinfo.money }}</h6>
                <span>账户总额（元）</span>
            </div>
            <button float-right class="recharge-btn" (click)="rechargePage()" >充值</button>
            <button float-right class="cash-btn" (click)="cashPage()" >提现</button>
        </div>
    </div>

    <ion-grid >
        <ion-row float-left >
            <ion-col col-4 text-center *ngFor="let item of list;let i=index;" (click)= "enterChildPage(item.url)" >
                <div>
                    <img src= "{{ item.icon }}" alt="">
                    <p>{{ item.title }}</p>
                </div>
            </ion-col>
        </ion-row>
    </ion-grid>
</ion-content>
